<?php

class CompanyCrudController extends Controller
{
	public $crdCompany;
	public function __construct()
	{
		$this->crdCompany= new crud_company(); 
	}
	
	public function actionIndex()
	{
		$this->render('index');
	}
	
	public function actionGetAllCompany()
	{
		$this->crdCompany->getAllCompany();
	}
	
	public function actionInsert()
	{
		$this->crdCompany->insert();
	}
	
	public function actionUpdate()
	{
		$this->crdCompany->update();
	}
	
	public function actionDelete()
	{
		$this->crdCompany->delete();
	}
}